//毫秒数转换时间 ps: 2016/09/08 10:30
export const tmToFormatTime = function(time) {
     let date = new Date(time);
     let MM = addZero(date.getMonth() + 1);
     let dd = addZero(date.getDate());
     let hh = addZero(date.getHours());
     let mm = addZero(date.getMinutes());
     return `${date.getFullYear()}/${MM}/${dd}  ${hh}:${mm}`
}

function addZero(val) {
    return val>9?val : '0' + val;
}

